package com.dog.basics.service.mtkj;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dog.basics.bean.dto.admin.mtkj.LockAddDto;
import com.dog.basics.bean.dto.admin.mtkj.LockEditDto;
import com.dog.basics.bean.dto.admin.mtkj.LockFromDto;
import com.dog.basics.bean.model.mtkj.MtDeviceLock;
import com.dog.basics.bean.vo.admin.mtkj.LockVo;
import com.dog.basics.bean.vo.api.mtkj.ApiLockVo;
import com.dog.basics.common.util.PageParam;

/**
 * <p>
 * 设备锁 服务类
 * </p>
 *
 * @author wph
 * @since 2020-09-29
 */
public interface IMtDeviceLockService extends IService<MtDeviceLock> {
    /**
     * @Description: 分页设备锁
     * @Param: status
     * @return: IPage<LockVo>
     * @Author: wph
     * @Date:
     */
    IPage<LockVo> getPageList(PageParam page, LockFromDto obj);
    /**
     * @Description: 设备锁详情
     * @Param: id
     * @return: ApiLockVo
     * @Author: wph
     * @Date:
     */
    ApiLockVo getApiObjXq(Long id);

    /**
     * @Description: 增加设备锁
     * @Param: obj
     * @return: Boolean
     * @Author: wph
     * @Date: 2020/05/19  0027
     */
    Boolean saveObj(LockAddDto obj);

    /**
     * @Description: 修改设备锁
     * @Param: obj
     * @return: Boolean
     * @Author: wph
     * @Date: 2020/05/19  0027
     */
    Boolean editObj(LockEditDto obj);

    /**
     * @Description: 删除设备锁
     * @Param: ids
     * @return: Boolean
     * @Author: wph
     * @Date: 2020/05/19  0027
     */
    Boolean deleteObj(Long id);

    /**
     * @Description: 设备锁在线离线
     * @Param: LockEditDto
     * @return: Boolean
     * @Author: wph
     * @Date: 2020/05/19  0027
     */
    Boolean editOnline(Long id);


    /**
     * @功能描述: 锁-异常上报 (以供使用)
     * @author He
     * @date 2020/10/13
     */
    Boolean editAbnormalReport(Long id,Integer lckport,String exCode);
}
